package com.pasabahceambalaj.session;

import com.pasabahceambalaj.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("parabirimList")
public class ParabirimList extends EntityQuery<Parabirim> {

	private static final String EJBQL = "select parabirim from Parabirim parabirim";

	private static final String[] RESTRICTIONS = { "lower(parabirim.ad) like lower(concat(#{parabirimList.parabirim.ad},'%'))", "lower(parabirim.kisaad) like lower(concat(#{parabirimList.parabirim.kisaad},'%'))", "lower(parabirim.kod) like lower(concat(#{parabirimList.parabirim.kod},'%'))", };

	private Parabirim parabirim = new Parabirim();

	public ParabirimList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Parabirim getParabirim() {
		return parabirim;
	}
}
